/**
 * Copyright (c) 2011 eelpo.com
 * All rights reserved.
 */
package com.eelpo.cmmp.uac.session;

import com.eelpo.cmmp.core.wicket.session.CMMPSession;
import com.eelpo.cmmp.core.wicket.session.ISessionGenerate;

import org.apache.wicket.Request;
import org.apache.wicket.Response;
import org.springframework.stereotype.Component;

/**
 * <pre>
 * 
 * Session生成器
 * 
 * </pre>
 * 
 * @author <a href="mailto:Brian@eelpo.com">汪洪州</a>
 * @since 1.0
 */
@Component("sessionGenerate")
public class UACSessionGenerate implements ISessionGenerate {

	/**
	 * (non-Javadoc)
	 * 
	 * @see com.eelpo.cmmp.core.wicket.session.ISessionGenerate#newSession(org.apache.wicket.Request,
	 *      org.apache.wicket.Response)
	 */
	@Override
	public CMMPSession newSession(Request request, Response response) {
		return new LoginSession(request);
	}

}
